<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">标题:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label for="c-admin_id" class="control-label col-xs-12 col-sm-2">学校名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-admin_id" data-rule="required" data-source="classes/school/index" data-field="school_name" data-primary-key="admin_id" data-value="admin_id" class="form-control selectpage" name="row[admin_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-classes_id" class="control-label col-xs-12 col-sm-2">班级:</label>
        <div class="col-xs-12 col-sm-8">
            <!--
            <input id="c-classes_id" data-rule="required" data-source="classes/classes/index" data-params='{"custom[status]":"1", "custom[empty]":"0"}' data-field="title" class="form-control selectpage" name="row[classes_id]" type="text" value="">
            -->
            <input id="c-classes_id" data-rule="required" data-source="classes/classes/index" data-params='{"custom[status]":"normal"}' data-field="title" class="form-control selectpage" name="row[classes_id]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">详细内容:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-images" class="control-label col-xs-12 col-sm-2">图片:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-images" class="form-control" size="50" name="row[images]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/*" data-multiple="true" data-preview-id="p-image"><i class="fa fa-upload"></i> 上传</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-admin-id="" data-input-id="c-images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="c-student_avatar"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-videos" class="control-label col-xs-12 col-sm-2">视频:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-videos" class="form-control" size="50" name="row[videos]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-video" class="btn btn-danger plupload" data-input-id="c-videos" data-mimetype="video/*" data-multiple="true" data-preview-id="p-videos"><i class="fa fa-upload"></i> 上传</button></span>
                    <span><button type="button" id="fachoose-video" class="btn btn-primary fachoose" data-admin-id="" data-input-id="c-videos" data-mimetype="video/*" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="c-videos"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-videos"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-files" class="control-label col-xs-12 col-sm-2">文档:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-files" class="form-control" size="50" name="row[files]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-file" class="btn btn-danger plupload" data-input-id="c-files" data-mimetype="doc,docx,xls,xlsx,ppt,pptx,txt,pdf,zip,rar" data-multiple="true" data-preview-id="p-files"><i class="fa fa-upload"></i> 上传</button></span>
                    <span><button type="button" id="fachoose-file" class="btn btn-primary fachoose" data-admin-id="" data-input-id="c-files" data-mimetype="doc,docx,xls,xlsx,ppt,pptx,txt,pdf,zip,rar" data-multiple="true"><i class="fa fa-list"></i> 选择</button></span>
                </div>
                <span class="msg-box n-right" for="c-files"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-files"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-links" class="control-label col-xs-12 col-sm-2">链接:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-links" class="form-control" size="50" name="row[links]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-link" class="btn btn-danger" data-input-id="c-links" data-preview-id="p-links"><i class="fa fa-chain"></i> 添加链接</button></span>
                </div>
                <span class="msg-box n-right" for="c-links"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-links"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2">类型:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[type]-0"><input id="row[type]-0" name="row[type]" type="radio" value="0"  checked/> 需要家长查看</label>
                <label for="row[type]-1"><input id="row[type]-1" name="row[type]" type="radio" value="1"  /> 需要家长确认</label>
                <label for="row[type]-2"><input id="row[type]-2" name="row[type]" type="radio" value="2"  /> 需要家长回复</label>
            </div>
        </div>
    </div>
    <div class="form-group" style="display:none">
        <label for="c-response_type" class="control-label col-xs-12 col-sm-2">提交类型:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox" id="response_type">
                <label for="row[response_type]-0"><input id="row[response_type]-0" name="row[response_type][]" type="checkbox" value="0"  checked/> 无限制</label>
                <label for="row[response_type]-1"><input id="row[response_type]-1" name="row[response_type][]" type="checkbox" value="1"  /> 文字</label>
                <label for="row[response_type]-2"><input id="row[response_type]-2" name="row[response_type][]" type="checkbox" value="2"  /> 图片</label>
                <label for="row[response_type]-3"><input id="row[response_type]-3" name="row[response_type][]" type="checkbox" value="3"  /> 拍照</label>
                <label for="row[response_type]-4"><input id="row[response_type]-4" name="row[response_type][]" type="checkbox" value="4"  /> 录音</label>
                <label for="row[response_type]-5"><input id="row[response_type]-5" name="row[response_type][]" type="checkbox" value="5"  /> 视频</label>
                <label for="row[response_type]-6"><input id="row[response_type]-6" name="row[response_type][]" type="checkbox" value="6"  /> 文档</label>
            </div>
        </div>
    </div>
    <div class="form-group" style="display:none">
        <label for="c-issecret" class="control-label col-xs-12 col-sm-2">提交可见:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio" id="issecret">
                <label for="row[issecret]-0"><input id="row[issecret]-0" name="row[issecret]" type="radio" value="0"  checked/> 所有人可见</label>
                <label for="row[issecret]-1"><input id="row[issecret]-1" name="row[issecret]" type="radio" value="1"  /> 仅老师可见</label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-status" class="control-label col-xs-12 col-sm-2">显示:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                <label for="row[status]-0"><input id="row[status]-0" name="row[status]" type="radio" value="0"  /> 隐藏</label>
                <label for="row[status]-1"><input id="row[status]-1" name="row[status]" type="radio" value="1"  checked/> 显示</label>
            </div>
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="row[user_id]" value="1"/>
            <button type="submit" class="btn btn-success btn-embossed">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
        </div>
    </div>
</form>